home *** CD-ROM | disk | FTP | other *** search
- GLIO_GROUP(3F) Last changed: 1-22-99
-
-
- NNAAMMEE
- gglliioo__ggrroouupp__mmppii, gglliioo__ggrroouupp__sshhmmeemm - Defines a group of processes to be
- associated with a global file.
-
- SSYYNNOOPPSSIISS
- C or C++:
-
- ##iinncclluuddee <<ffffiioo..hh>>
- ##iinncclluuddee <<mmppii..hh>>
- vvooiidd gglliioo__ggrroouupp__mmppii((MMPPII__CCoommmm _c_o_m_m))
- ##iinncclluuddee <<mmpppp//sshhmmeemm..hh>>
- vvooiidd gglliioo__ggrroouupp__sshhmmeemm((iinntt _h_a_n_d_l_e));;
-
- Fortran:
-
- iinncclluuddee ""mmppiiff..hh""
- IINNTTEEGGEERR _c_o_m_m
- CCAALLLL GGLLIIOO__GGRROOUUPP__MMPPII((_c_o_m_m))
- iinncclluuddee ""mmpppp//sshhmmeemm..ffhh""
- IINNTTEEGGEERR _h_a_n_d_l_e
- CCAALLLL GGLLIIOO__GGRROOUUPP__SSHHMMEEMM((_h_a_n_d_l_e));;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS/mk and IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- These subroutines identify the group of processes which will share
- access to any FFIO files opened with the gglloobbaall FFIO layer. These
- files, termed _g_l_o_b_a_l _f_i_l_e_s, must be opened and closed collectively by
- all processes that share access to them.
-
- The following is a list of valid arguments for these routines:
-
- _c_o_m_m An MPI communicator. The group of processes associated with
- this communicator will access the global file. This process
- group must be executing within a single host machine.
-
- _h_a_n_d_l_e A SHMEM process group handle returned from the
- sshhmmeemm__ggrroouupp__ccrreeaattee__ssttrriiddeedd(()) function.
-
- The gglliioo__ggrroouupp__mmppii and gglliioo__ggrroouupp__sshhmmeemm functions are collective
- across the set of processes identified by _c_o_m_m or _h_a_n_d_l_e.
-
- If gglliioo__ggrroouupp__mmppii or gglliioo__ggrroouupp__sshhmmeemm are not called prior to an open
- of a gglloobbaall file, all MPI or SHMEM processes in the application must
- collectively open and close the file.
-
- EEXXAAMMPPLLEESS
- The following Fortran program opens global file gglloobbffiillee for access
- from SHMEM processes (PEs) 0 and 1. PEs 2 and higher will not access
- the file.
-
- program global_subset
- include "mpp/shmem.fh"
- integer racom, handle
- common /racom/ racom(SHMEM_GROUP_COM_SIZE)
-
- call start_pes(0)
- racom = 0
-
- c Define a SHMEM group and then open globfile across this group
-
- if (my_pe().le.1) then
- call assign("assign -F global u:20",ier)
- handle = shmem_group_create_strided(0, 1, 2, racom, shmem_null)
- call glio_group_shmem(handle)
- open (20,file="globfile",access="direct",recl=64)
- endif
-
- end
-
- SSEEEE AALLSSOO
- sshhmmeemm__ggrroouupp__ccrreeaattee__ssttrriiddeedd(3)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed
- version of this man page.
-